package com.chance.cc.crawler.development.command.publish.hangzhou;

import com.chance.cc.crawler.core.CrawlerJob;
import com.chance.cc.crawler.development.command.job.domain.hangzhou.HangzhouCrawlerScheduleJob;
import com.chance.cc.crawler.development.command.script.hangzhou.HangzhouCrawlerScript;
import com.chance.cc.crawler.development.command.trigger.domain.hangzhou.HangzhouScheduleTrigger;

/**
 * @Author Zhao.Hhuan
 * @Date Create in 2020/12/18 17:27
 * @Description
 *      杭州网
 **/
public class HangzhouPublishCrawlerJob {

    public static void main(String[] args) {
        publishCrawlerJob();
    }

    public static void publishCrawlerJob(){
        //发布采集job
        CrawlerJob crawlerJob = HangzhouCrawlerScheduleJob.publishhangzhouCrawlerScheduleJobInfo();
        HangzhouScheduleTrigger.publishScheduleTriggerInfo(crawlerJob.generateCrawlerKey(), crawlerJob.generateCrawlerTriggerKey());
        HangzhouCrawlerScript.publishCrawlerNodeScript();
    }
}
